<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改房间信息</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
</head>
<body>
<form id="form" action="${path}/room/update.json" method="post">
<div class="form">
	<div class="group">
		<div class="label">*房间编号:</div>
		<div class="item"><input type="text" name="roomCode" id="roomCode" value="${room.roomCode }" /></div>
	</div>
	<div class="group">
		<div class="label">单元号:</div>
		<div class="item"><input type="text" name="unitNo" id="unitNo" value="${room.unitNo }" /></div>
	</div>
	<div class="group">
		<div class="label">建筑面积:</div>
		<div class="item"><input type="text" name="buildingArea" id="buildingArea" value="${room.buildingArea }" /></div>
	</div>
	<div class="group">
		<div class="label">套内面积:</div>
		<div class="item"><input type="text" name="roomArea" id="roomArea" value="${room.roomArea }" /></div>
	</div>
	<div class="group">
		<div class="label">公摊面积:</div>
		<div class="item"><input type="text" name="publicArea" id="publicArea" value="${room.publicArea }" /></div>
	</div>
	<div class="group">
		<div class="label">收费服务对象:</div>
		<div class="item"><input type="text" name="tollTarget" id="tollTarget" value="${room.tollTarget }" /></div>
	</div>
	<div class="group">
		<div class="label">楼层数:</div>
		<div class="item"><input type="text" name="floorNum" id="floorNum" value="${room.floorNum }" /></div>
	</div>
	<div class="group">
		<div class="label">房间地址:</div>
		<div class="item"><input type="text" name="address" id="address" value="${room.address }" /></div>
	</div>
	<div class="group">
		<div class="label">房间状态:</div>
		<div class="item"><input type="text" name="roomStatus" id="roomStatus" value="${room.roomStatus }" /></div>
	</div>
	<div class="group">
		<div class="label">房间类型:</div>
		<div class="item"><input type="text" name="roomType" id="roomType" value="${room.roomType }" /></div>
	</div>
	<div class="group">
		<div class="label">入住开始日期:</div>
		<div class="item"><input type="text" name="checkinDate" id="checkinDate" ltype="date" value="<fmt:formatDate value="${room.checkinDate }" pattern="yyyy-MM-dd" />" /></div>
	</div>
	<div class="group">
		<div class="label">租赁状态:</div>
		<div class="item"><input type="text" name="leaseStatus" id="leaseStatus" value="${room.leaseStatus }" /></div>
	</div>
	<div class="group">
		<div class="label">权属类型:</div>
		<div class="item"><input type="text" name="ownership" id="ownership" value="${room.ownership }" /></div>
	</div>
	<div class="group">
		<div class="label">房间用途:</div>
		<div class="item"><input type="text" name="roomUse" id="roomUse" value="${room.roomUse }" /></div>
	</div>
	<div class="group">
		<div class="label">装修情况:</div>
		<div class="item"><input type="text" name="decorative" id="decorative" value="${room.decorative }" /></div>
	</div>
	<div class="group">
		<div class="label">朝向:</div>
		<div class="item"><input type="text" name="orientation" id="orientation" value="${room.orientation }" /></div>
	</div>
	<div class="group">
		<div class="label">是否签署协议:</div>
		<div class="item"><input type="text" name="pact" id="pact" value="${room.pact }" /></div>
	</div>
	<div class="group">
		<div class="label">租金:</div>
		<div class="item"><input type="text" name="rent" id="rent" value="${room.rent }" /></div>
	</div>
	<div class="group">
		<div class="label">管理费:</div>
		<div class="item"><input type="text" name="mgrfee" id="mgrfee" value="${room.mgrfee }" /></div>
	</div>
	<div class="group">
		<div class="label">单价:</div>
		<div class="item"><input type="text" name="price" id="price" value="${room.price }" /></div>
	</div>
	<div class="group">
		<div class="label">总价:</div>
		<div class="item"><input type="text" name="totalPrice" id="totalPrice" value="${room.totalPrice }" /></div>
	</div>
	<div class="group">
		<div class="label">租赁合同号:</div>
		<div class="item"><input type="text" name="leaseContractNo" id="leaseContractNo" value="${room.leaseContractNo }" /></div>
	</div>
	<div class="group">
		<div class="label">备注:</div>
		<div class="item"><textarea id="remark" name="remark">${room.remark }</textarea></div>
	</div>
	<div class="buttons">
		<button class="highlight" id="submit1" type="button">确定</button>
		<button type="button" id="cancel1">取消</button>
		<input type="hidden" id="roomid" name="roomid" value="${room.roomid }" />
	</div>
</div>
</form>
<%@ include file="/WEB-INF/sys/include/script.jsp" %>
<script type="text/javascript">
$(function() {
	$("#form").ligerForm({inputWidth: 300});
	
	verifyForm("form", {}, function(){
		$("#form").ajaxForm(function(data){
			UiUtil.isSuccess(data, "修改房间档案成功", function(){
				UiUtil.closeForm(true);
			});
		});
	});
	
	$("#submit1").click(function(){
		UiUtil.lockButton('submit1');
		$("#form").submit();
	});

	$("#cancel1").click(function(){
		UiUtil.closeForm();
	});
	
});
</script>
</body>
</html>